using System;
using System.Windows.Forms;

namespace WinformToolkit.Drawing
{
    /// <summary>
    /// Triangle tool
    /// </summary>
    class ToolTriangle : WinformToolkit.Drawing.ToolRectangle
    {
        public ToolTriangle()
        {
            Cursor = this.LoadCursor("Triangle.cur");
        }

        public override void OnMouseDown(DrawArea drawArea, MouseEventArgs e)
        {
            PropertiesTriangle properties = new PropertiesTriangle(e.X, e.Y, 1, 1);

            AddNewObject(drawArea, new DrawTriangle(properties));
        }
    }
}
